package com.service.impl;

import com.domain.Company;
import com.domain.Student;
import com.mapper.TeacherMapper;
import com.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;


    @Override
    public List<Student> tquery(Integer sid) {
        List<Student> all = teacherMapper.tquery(sid);
        return all;
    }

    @Override
    public List<Company> cquery(Integer cid) {
        List<Company> all = teacherMapper.cquery(cid);
        return all;
    }

    @Override
    public List<Student> squery(Integer sid) {
        List<Student> all = teacherMapper.squery(sid);
        return all;
    }

    @Override
    public List<Student> sfind(Integer sid) {
        List<Student> all = teacherMapper.sfind(sid);
        return all;
    }


}
